<?php
$pageInfo = array('id' => 'home', 'title' => '');
$dateFormats = array(
	'standard' => 'F j, Y g:ia',
	'notime' => 'F j, Y',
	'time' => 'g:ia',
	'small' => 'M. j, Y',
	'mysql' => 'Y-m-d H:i:s'
);
$globals = array('tablePrefix', 'mysql', 'dateFormats');
$path = pathinfo($_SERVER['SCRIPT_FILENAME']);

/* INCLUDE FILES */
include(ABSPATH.'includes/functions.php');
include(ABSPATH.'includes/functions.format.php');
include(ABSPATH.'includes/functions.theme.php');
include_theme_file('functions.php');
include(ABSPATH.'includes/class.mysql.php');
include(ABSPATH.'includes/class.items.php');
include(ABSPATH.'includes/class.skeleton.php');
if (is_admin()) include(ABSPATH.'includes/functions.admin.php');

/* DEFINE MYSQL */
$mysql = new mysql($dbinfo);

/* CONSTANTS */
define('PHP_SELF', clean($path['basename']));
define('ACTION', get_global($_GET, 'action'));

/* MYSQL TABLE NAMES */
define('POSTS', $tablePrefix.'posts');
define('PAGES', $tablePrefix.'pages');
define('CATEGORIES', $tablePrefix.'categories');
define('COMMENTS', $tablePrefix.'comments');
define('USERS', $tablePrefix.'users');
define('UPLOADS', $tablePrefix.'uploads');
define('SETTINGS', $tablePrefix.'settings');
define('USERS_COMMENTS', $tablePrefix.'users_comments');

/* VERSION */
define('AA_VERSION', '1.1');

/* ALL CATEGORIES */
if (empty($install) && !file_exists(ABSPATH.'admin/install.php')) $allCategories = get_categories();
?>